package bairui.international.controller.system.recharge;

import com.sh_lianjing.spring.web.controller.enhance.module.*;
import com.sh_lianjing.spring.web.controller.enhance.module.body.*;
import com.sh_lianjing.spring.web.controller.enhance.output.bean.*;
import bairui.international.controller.system.recharge.C_System_Recharge_Edit_Edit;

/**
 *
 * Module_Edit
 *
 */
class Module_Edit{

	
	public Module module(
		bairui.international.model.domain.jpa.TB_SystemConfig bean
		, 
		C_System_Recharge_Edit_Edit.Edit.Operate c_System_Recharge_Edit_Edit_Edit_Operate
				
		,com.sh_lianjing.spring.web.controller.enhance.input.InputModelContextMethodInfoEditor ... editors
		
	){
		return moduleTemplate(
				bean
				, 
				c_System_Recharge_Edit_Edit_Edit_Operate
						
				,editors
			);
	}
	
	public Module module(
		java.util.List<bairui.international.model.domain.jpa.TB_SystemConfig> bean
		, 
		C_System_Recharge_Edit_Edit.Edit.Operate c_System_Recharge_Edit_Edit_Edit_Operate
				
		,com.sh_lianjing.spring.web.controller.enhance.input.InputModelContextMethodInfoEditor ... editors
		
	){
		return moduleTemplate(
				bean
				, 
				c_System_Recharge_Edit_Edit_Edit_Operate
						
				,editors
			);
	}
	
	
	/**
	 * 编辑模块
	 */
	private Module moduleTemplate(
		Object bean
		, 
		C_System_Recharge_Edit_Edit.Edit.Operate c_System_Recharge_Edit_Edit_Edit_Operate
				
		,com.sh_lianjing.spring.web.controller.enhance.input.InputModelContextMethodInfoEditor ... editors
		
	){
		return
			new Module(
					new ModuleHead("编辑")
					, 
					new EditModuleBody(
							bean, 
							Model.class,
							c_System_Recharge_Edit_Edit_Edit_Operate, 
							Relation.relations(
								)
							,editors
						)
				);
	}
	
	/**
	 * 输入模型
	 */
	static public class Models {
		private @lombok.Getter @lombok.Setter java.util.List<Model> models = new java.util.ArrayList<>();
	}
	
	@org.springframework.stereotype.Component("bairui.international.controller.system.recharge.Module_Edit$Model")
	
	static public class Model
	
	 extends bairui.international.model.domain.jpa.TB_SystemConfig
	
	 implements 
	
		com.sh_lianjing.spring.web.controller.enhance.input.InputModelable
	
	{
	
	
	
		/**
	
		 * 默认构造函数
	
		 */
	
		public Model(){}
	
	
	
		/**
	
		 * 构造函数
	
		 */
	
		public Model(
	
			bairui.international.model.domain.jpa.TB_SystemConfig bean
	
		){
	
			if(null != bean){
	
				this.setGeneralUserFirstRechargeMinAmount(bean.getGeneralUserFirstRechargeMinAmount());
	
				this.setGeneralUserFirstRechargeMinAmountComment(bean.getGeneralUserFirstRechargeMinAmountComment());
	
				this.setRechargeMinAmount(bean.getRechargeMinAmount());
	
				this.setRechargeMinAmountComment(bean.getRechargeMinAmountComment());
	
				this.setWithdrawMinAmount(bean.getWithdrawMinAmount());
	
				this.setWithdrawMinAmountComment(bean.getWithdrawMinAmountComment());
	
			}
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("普通用户首充最小额度")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(1001)
	
		@javax.validation.constraints.NotNull
	
		@javax.validation.constraints.Max(Long.MAX_VALUE)
	
		@javax.validation.constraints.Min(0)
	
		@Override
	
		public Double getGeneralUserFirstRechargeMinAmount() {
	
			return (Double)super.getGeneralUserFirstRechargeMinAmount();
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("普通用户首充最小额度说明")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(2001)
	
		@javax.validation.constraints.Size(min=0, max=500)
	
		@Override
	
		public String getGeneralUserFirstRechargeMinAmountComment() {
	
			return (String)super.getGeneralUserFirstRechargeMinAmountComment();
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("充值最小额度")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(3001)
	
		@javax.validation.constraints.NotNull
	
		@javax.validation.constraints.Max(Long.MAX_VALUE)
	
		@javax.validation.constraints.Min(0)
	
		@Override
	
		public Double getRechargeMinAmount() {
	
			return (Double)super.getRechargeMinAmount();
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("充值最小额度说明")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(4001)
	
		@javax.validation.constraints.Size(min=0, max=500)
	
		@Override
	
		public String getRechargeMinAmountComment() {
	
			return (String)super.getRechargeMinAmountComment();
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("提现最小额度")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(5001)
	
		@javax.validation.constraints.NotNull
	
		@javax.validation.constraints.Max(Long.MAX_VALUE)
	
		@javax.validation.constraints.Min(0)
	
		@Override
	
		public Double getWithdrawMinAmount() {
	
			return (Double)super.getWithdrawMinAmount();
	
		}
	
		
	
	
	
		@com.sh_lianjing.model.annotation.Comment("提现最小额度说明")
	
		@com.sh_lianjing.reflect.method.annotation.MethodOrder(6001)
	
		@javax.validation.constraints.Size(min=0, max=500)
	
		@Override
	
		public String getWithdrawMinAmountComment() {
	
			return (String)super.getWithdrawMinAmountComment();
	
		}
	
		
	
	
	
		/**
	
		 * 非继承属性
	
		 */
	
	
	
		/**
	
		 * 得到输入属性
	
		 */
	
		/** 得到普通用户首充最小额度 */
	
		public Double gainGeneralUserFirstRechargeMinAmount() {
	
			return this.getGeneralUserFirstRechargeMinAmount();
	
		}
	
		/** 得到普通用户首充最小额度说明 */
	
		public String gainGeneralUserFirstRechargeMinAmountComment() {
	
			return this.getGeneralUserFirstRechargeMinAmountComment();
	
		}
	
		/** 得到充值最小额度 */
	
		public Double gainRechargeMinAmount() {
	
			return this.getRechargeMinAmount();
	
		}
	
		/** 得到充值最小额度说明 */
	
		public String gainRechargeMinAmountComment() {
	
			return this.getRechargeMinAmountComment();
	
		}
	
		/** 得到提现最小额度 */
	
		public Double gainWithdrawMinAmount() {
	
			return this.getWithdrawMinAmount();
	
		}
	
		/** 得到提现最小额度说明 */
	
		public String gainWithdrawMinAmountComment() {
	
			return this.getWithdrawMinAmountComment();
	
		}
	
	
	
		/**
	
		 * 转换到表单数据格式
	
		 */
	
		public java.util.Map<String, String> toFormData() throws com.sh_lianjing.serialize.json.jackson.exception.JsonException{
	
			return com.sh_lianjing.web.util.Util_Form.beanToFormDataFormat(this);
	
		}
	
	
	
	}
	
	
	
	static public class Relation
	{
		public static java.util.Map<String, java.util.List<?>> relations(
		){
			java.util.Map<String, java.util.List<?>> map = new java.util.HashMap<>();
			return map;
		}
	}
	
	
	
	/**
	 * 输出模型
	 */
	

}
